<<<<<<< .mine
﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LogicUniversityBiz
{
    
    public class CheckRequestedItemsControl
    {

        private EFFascade fascade;
        private DayMatcher matcher;

        public List<TotalRequestedItems> getTotalWeeklyRequestedItems(DateTime today,string deptCode)
        {
            //fascade=new EFFascade();
            //matcher = new DayMatcher(today);

            //DateTime fromDate = matcher.calculateFromDate();
            //DateTime toDate = matcher.calculateToDate();

            //return fascade.getTotalWeeklyRequisitions(fromDate, toDate, deptCode);
            return fascade.getTotalRequestedItemsOf(deptCode);
        }

        public string getDeptCodeOf(string empID)
        {
            fascade = new EFFascade();
            return fascade.getDepartmentCode(empID);
        }

        public void acknowledge(List<string> codes, string empID)
        {
            fascade = new EFFascade();
            fascade.acknowledgeRequestedItems(codes, empID);
        }
    }
}
=======
﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LogicUniversityBiz
{
    
    public class CheckRequestedItemsControl
    {

        private EFFascade fascade;
        private DayMatcher matcher;

        public List<RequisitionWithItemDetails> getTotalWeeklyRequestedItems(DateTime today,string deptCode)
        {
            fascade=new EFFascade();
            matcher = new DayMatcher(today);

            DateTime fromDate = matcher.calculateFromDate();
            DateTime toDate = matcher.calculateToDate();

            return fascade.getTotalWeeklyRequisitions(fromDate, toDate, deptCode);
        }
    }
}
>>>>>>> .r28
